package server.net;

import org.w3c.dom.Document;
import server.data.Customer;
import server.data.Link;
import server.data.Router;
import server.data.Circuit;

/**
 *
 * @author Danon
 */
public class CircuitRequest extends Request {

    public CircuitRequest(Customer c, Circuit<Router, Link> circuit) {
        super(c);
        this.circuit = circuit;
    }
    
    public final Circuit<Router, Link> getCircuit() {
        return circuit;
    }
    
    @Override
    public String toString() {
        return "ConfirmRequest{customer:" + getCustomer() + "; id:"+getId()+
                "; circuit:" + getCircuit()+"}";
    }
    
    static Request createFromDOM(Document doc) {
        //TODO Load CircuitRequest from DOM tree
        throw new UnsupportedOperationException("Not yet implemented");
    }
    
    private Circuit<Router, Link> circuit;
}
